package learn_project;

import java.util.Scanner;

/**
 * @author Vv
 * @version 1.0
 * @project coding_learn
 * @description
 * @date 2023/9/25 08:59:01
 */
public class Menu {
    public static void main(String[] args) {
        menu01();
    }
    public static void menu01(){
        System.out.println("* * * * * * * * * * * * * * * * * * * * * * * * * * * * *");// \n
        System.out.println("*               欢迎使用控制台版饿了么系统                  	*");
        System.out.println("* * * * * * * * * * * * * * * * * * * * * * * * * * * * *");// \n
        System.out.println("1.商户注册");// \n
        System.out.println("2.商户登录");
        System.out.println("0.退出系统");
        boolean flag = false;
        do{
            System.out.println("请选择功能(0-2):");//
            Scanner sc = new Scanner(System.in);
            int fun = sc.nextInt();
            flag = false;
            BusinessMng businessMng = new BusinessMng();
            switch (fun){
                case 1:
                    //
                case 2:
                    //
                case 0:
                    System.out.println("宁一安全退出！欢迎下次使用本系统");
                default :
                    System.out.println("请选择相应的功能！在0~2之间选择");
                    flag = true;
            }
        }while(flag);
    }
    public static void menu02(){
        System.out.println("登录成功后 可以看到如下信息");
        System.out.println("* * * * * * * * * * * * * * * * * * * * * * * * * * * * *");
        System.out.println("饿了么系统>> 商户管理");
        System.out.println("* * * * * * * * * * * * * * * * * * * * * * * * * * * * *");// \n
        System.out.println("1.显示本商户信息");// \n
        System.out.println("2.修改本商户信息");// \n
        System.out.println("3.删除本商户信息");// \n
        System.out.println("4.添加本商户经营食品");// \n
        System.out.println("0.返回上一级菜单");// \n
        Scanner sc = new Scanner(System.in);
        System.out.println("请选择功能(0-4):");
        int fun = sc.nextInt();
        BusinessMng businessMng = new BusinessMng();
        switch(fun){
            case 1:
                //
            case 2:
                //
            case 3:
                //
            case 4:
                //
            case 0:
                //
            default:
                System.out.println("请选择相应的功能! 在0-4之间选择。");
        }
    }
}
